package cn.dm.mapper;

import cn.dm.pojo.User;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface UserMapper {

    @Select("select * from t_user")
    List<User> findAll();

    @Select("select * from t_user where id = #{id}")
    User findUserById(int id);
}
